package com.beself.controller;

import com.beself.service.testService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @ProjectName: beself
 * @Package: com.beself.controller
 * @ClassName: testController
 * @Description: java类作用描述
 * @Author: 樊晋源
 * @CreateDate: 2019/10/16 10:38
 * @Version: 1.0
 */
@Controller
public class testController {
    @Resource
    private testService testService;
    @RequestMapping("/api/insertall")
    public void insertAll(int uId){
        int i = testService.insertAll(uId);
        if (i>0){
            System.out.println("success");
        }else {
            System.out.println("defult");
        }
    }

}
